﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using Catch.ISQLServerDAL;
using System.Configuration;
namespace Catch.SQLServerDAL
{
    public class MSSQLHelper : ISQLManager
    {
        /// <summary>
        /// 配置文件
        /// </summary>
        private readonly string conn = ConfigurationManager.ConnectionStrings["ConnString"].ConnectionString;

        #region ISQLManager 成员

        public DataSet GetDateSet(string sqlstring)
        {

            SqlDataAdapter sda = new SqlDataAdapter(sqlstring, conn);
            DataSet ds = new DataSet();
            sda.Fill(ds, "ds");
            return ds;
        }


        #endregion
    }
}
